﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Satates.WaterCupState;

namespace Algorithms.HillClimbing
{
    public class WaterCupHeuristic:iHeuristic
    {
        public int Value(Satates.State t)
        {
            int c1 = ((WaterCupState)t.CurrentState).getCapacity1();
            int c2 = ((WaterCupState)t.CurrentState).getCapacity2();
            if (c2 == 2) return 5;
            if (c1 == 2) return 4;
            if (c1 == 1 && c2 == 4) return 3;
            return 0;
        }
    }
}
